package com.ga.wact.entity;

import java.sql.Date;

public class Mail {
    int id;
    String receiver;
    String title;
    String content;
    Date sendTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Mail(int id, String receiver, String title, String content, Date sendTime) {
        this.id = id;
        this.receiver = receiver;
        this.title = title;
        this.content = content;
        this.sendTime = sendTime;
    }

    public Mail() {
    }

    @Override
    public String toString() {
        return "Mail{" +
                "id=" + id +
                ", receiver='" + receiver + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", sendTime=" + sendTime +
                '}';
    }
}
